﻿@using GraduationProject.Model
@{
    Layout = null;
    var SortModel = ViewData["SortModel"] as List<SortList>;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文章列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="~/Content/layui/css/layui.css" rel="stylesheet" />
    <link href="~/Content/css/public.css" rel="stylesheet" />
</head>
<body class="childrenBody">
    <form class="layui-form layui-row layui-col-space10">
        <div class="layui-col-md9 layui-col-xs12">
            <div class="layui-row layui-col-space10">
                <div class="layui-col-md9 layui-col-xs7">
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">文章标题</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input newsName" name="NovelTitle" lay-verify="newsName" placeholder="请输入文章标题">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">内容摘要</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容摘要" name="NovelSummary" class="layui-textarea abstract"></textarea>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md3 layui-col-xs5">
                   
                </div>
            </div>
            <div class="layui-form-item magb0">
                <label class="layui-form-label">文章内容</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea layui-hide" name="content" id="news_content"></textarea>
                </div>
            </div>
        </div>
        <div class="layui-col-md3 layui-col-xs12">
            <blockquote class="layui-elem-quote title"><i class="seraph icon-caidan"></i> 分类目录</blockquote>
            <div class="border category">
                <div class="">
                    <select lay-verify="required" name="SortType" id="SortType" lay-filter="column">
                        @if (SortModel != null)
                        {
                            foreach (var item in SortModel)
                            {
                                <option value="@item.SortID">@item.SortName</option>
                            }
                        }
                    </select>
                </div>
            </div>
            <blockquote class="layui-elem-quote title magt10"><i class="layui-icon">&#xe609;</i> 发布</blockquote>
            <div class="border">
                <div class="layui-form-item">
                    <label class="layui-form-label"><i class="layui-icon">&#xe609;</i> 发　布</label>
                    <div class="layui-input-block">
                        <input type="radio" name="release"  title="立即发布" lay-skin="primary" lay-filter="release" checked />
                        <input type="radio" name="release" title="定时发布" lay-skin="primary" lay-filter="release" />
                    </div>
                </div>
                <div class="layui-form-item layui-hide releaseDate">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" id="release" placeholder="请选择日期和时间" readonly />
                    </div>
                </div>
                <div class="layui-form-item openness">
                    <label class="layui-form-label"><i class="seraph icon-look"></i> 评论</label>
                    <div class="layui-input-block">
                        <input type="radio" name="openness" value="0" title="开放评论" lay-skin="primary" checked />
                        <input type="radio" name="openness" value="1" title="静止评论" lay-skin="primary" />
                    </div>
                </div>
                <div class="layui-form-item newsTop">
                    <label class="layui-form-label"><i class="seraph icon-zhiding"></i> 置　顶</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="newsTop" id="newsTop" lay-skin="switch" lay-text="是|否">
                    </div>
                </div>
                <hr class="layui-bg-gray" />
                <div class="layui-right">
                    <button class="layui-btn" lay-submit lay-filter="addNews">发布</button>
                </div>
            </div>
        </div>
    </form>
    <script src="~/Content/layui/layui.js"></script>
    <script src="~/Content/js/admin/newsAdd.js"></script>
</body>
</html>